Refactors, adapter class, & working with Streamy!

Added a generic adaptor interface to get a Database implementation
working with other interfaces.

Went ahead and implemented a compatibility layer with Streamy that
handles decoupling the entity (sending raw JSON to the actual Database
implementation) and wrapping a map (into an Entity) from a Database.

Added basic unit tests.