Refactorings so that I might be able to use transactions eventually
Put actual tests in the test file
Merge branch 'master' of github.com:jamesots/persist