(#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
Refactored game.js to support filtering a list of games by its properties
Added 'game/list' endpoint to fetch a list of games using filters, including limiting by count. Supports restricted filters that require additonal permissions to use (ie. filtering by 'status' requires reviewer or admin permissions). Currently only the 'status' filter is implemented, but adding others is trivial thanks to an abstracted model and filter support in game.js.

Also fixed some bugs in game.js from last commit.
(#34) Now updates status in database
Merge branch 'moderateJS'

Conflicts:
	views/game/moderate.js
(#34) Refactored and changed success response
Uppercased some constants
(#35) Games should default to 'pending' status when created
(fixed #35) Changed to single quotes
(Fixed #34) Refactored with style changes
Reverse-abstracted everything
Style fixes
Stylin'
Fixed refactoring mistakes
Merge branch 'master' into review-list
Merge pull request #89 from cvan/review-list

Added game/list endpoint for fetching filterable lists of games
Fixed a couple of silly bugs in list.js
Style