Clean up server app, use modules for rethinkdb adapter