FLOE-206: Upgraded to latest pouchdb

Upgraded to pouchdb v2.2.3
FLOE-206: Updating tests and datasource

Updated the datasource and tests after upgrading PouchDB. Now using promises.
FLOE-206: Added a createView method.

A user can now add views for querying the database against. Additionally the get method was refactored to be able to make queries to the database and the set method was refactored to move shared parts into an impl function. Tests updated and added.
FLOE-206: Set can now perform POST operations

Set has been extended to be able to handle both post and put requests. If the directModel doesn't contain an id, it is assumed that the request is a POST.
FLOE-206: Added a specific unit test for query

Added a specific unit test for accessing a query via the get method.
FLOE-206: Updated binding to pouchdb changes

Updated to the latest api for pouchdb changes. This seems to have taken care of the memory leak errors.w
Merge remote-tracking branch 'justin/FLOE-206'

* justin/FLOE-206:
  FLOE-206: Updated binding to pouchdb changes
  FLOE-206: Added a specific unit test for query
  FLOE-206: Set can now perform POST operations
  FLOE-206: Added a createView method.
  FLOE-206: Updating tests and datasource
  FLOE-206: Upgraded to latest pouchdb
Merge branch 'master' into FLOE-207