(#34) Refactored moderate.js to be cleaner and only match specific urls
(#34) Refactored moderate.js to be cleaner and only match specific urls
Merge branch 'master' of github.com:cvan/galaxy-api into moderateJS
Modified db-prefill to use `fork()` to start up an instance of the API and persona-faker servers, then kill them on completion; this means that we can now run db-prefill without any prior setup (after `npm install`).

This makes use of redis pub/sub to detect when the API and persona-faker servers are set up, so it requires each to send a message after launching their HTTP server so that db-prefill can begin the pre-fill process. If you have already run `npm install` with persona-faker, you will need to run `npm install` again to receive this change on persona-faker.
Prefix stdout / stderr of child processes with their respective names in db-prefill
Cleanup
Setup exit handler before calling startServers so that if we crash for some reason after creating one server but before finishing the other, we can still kill the server that we had already started
Moved startServers to its chronological location, and refactored the server ready listening into a promise with a timeout handler for easier debugging
(#34) Now updates status in database
Merge branch 'moderateJS'

Conflicts:
	views/game/moderate.js
(#34) Refactored and changed success response
(#35) Games should default to 'pending' status when created
(fixed #35) Changed to single quotes
(Fixed #34) Refactored with style changes
Changed stdout / stderr prefixing to use a proper stream.Writable subclass; style fixes
Reorganized imports
Added an SSA verification plugin to restify that transforms the _user token, when present, to an email address, setting the _email param of the request object on success. If that step fails, it automatically returns a 403 bad_user response. This will help eliminate some boilerplate we've been using in pretty much every API endpoint.
Replaced all instances of `auth.verifySSA(_user)` with the new `_email` param outputted by the SSA verification plugin
Added documentation for SSA verification plugin, and fixed a potential security flaw by always setting the _email parameter
Style fixes