fix typos, PSR2 warning, locale param in querystring
fix typos, PSR2 warning, locale param in querystring

* fix a few typos/minor errors
* Fix PSR2 warning for line length
*
Change how we look for the locale param so that it is allowed in a query
string (required for preview and editcontent), fixes #46

AnimalDesign/bolt-translate,AnimalDesign/bolt-translate