Refactored json sanity checking before inserting into db.
Exclude nontimestamped datastore directories.
Ignore docs without _rev field
updated TODO
Added support for Sugar 0.96+.
Correct activity metadata timestamp if incorrect.