* start implementing support for a nonplayer to view a game, and fully implement watching swing dice set for a nonplayer
* when a PHP fatal error causes the response to be a string rather than an object, let the user know something went wrong
Merge branch 'master' of github.com:buttonmen-dev/buttonmen into 145_bystander
* add and test Nonplayer functions for all other game states
* add missing semicolons
* fix checkstyle errors introduced into dummy_responder
* add some new Game.js tests to improve code coverage a bit
* add a few more Game.js tests to improve coverage
* make a generic Api.apiPost routine and call it from Api
* move getUserPrefs into Api and use the new framework for it
* make another routine for api form submission, and invoke it when setting user prefs
* use the new API form post method for createGame
* createUser should use apiFormPost
* remove unused data argument to newuser status function to make jshint happy
Merge pull request #469 from cgolubi1/461_submit_error

UI code to handle a PHP fatal error in submitTurn more cleanly
Merge pull request #470 from cgolubi1/145_bystander

allow a logged-in nonplayer to view all stages of a game
Merge pull request #471 from cgolubi1/468_post_wrapper

make some wrapper functions to handle API post and make various other JS functions to use them
Added skill ordering so that die hooks fire in the correct order
Corrected capitalisation of property 'gainedInitiative'
Corrected capitalisation of property 'gainedInitiative' in Game.js