separates couchdb service into registry and user services
moves logout to its own function
moves sessions from server.js to user service
moves plugins list to config.js