Zeitgeist for Mac OS X?
Timing for Mac provides at least part of the functionality you are looking for.

Timing is the best way to keep track of the time you spend with your Mac. Find out where your time goes - without ever having to start a timer again!
Timing automatically tracks which documents you are editing, which applications you use, and the domains of the websites you visit. Afterwards, just drag and drop activities into projects. There are some default categories, but you are free to customize them!