Sanitized tests and added more functions.
Added cascade deletions for time values.
Fixed inc_rev trigger fn in db.
...again.
Delete child on cascade and fixed trigger function for task rev update.
Added times spent calculation and tests.