Added compressed datastore (a bit slow so far), as well as more unit tests for store class and DB, fixed some bugs in the transaction management code. Reorganized code files.