(#114) - implement compaction in websql (WARNING!)

WARNING:
This implementation WILL conflict with #344 as right now we assume
that rev is unique per database. Merge with caution!