* 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 #471 from cgolubi1/468_post_wrapper

make some wrapper functions to handle API post and make various other JS functions to use them