major refactoring, replaced riak with mongodb for storage, added some more unit tests