Extract rethinkdb_adapter into a standalone module

- https://github.com/pixelhandler/rethinkdb_adapter
- https://www.npmjs.com/package/rethinkdb_adapter