Mitch Kapor, founder of Lotus, has an open source project you may want to look at, called Chandler: chandlerproject.org.
It isn't quite done, although you can download a "we're still working on it" copy, but it has a lot of potential.
Here is an update: Chandler 1.0 has just been released. You can download (free) it at chandlerproject.org