make enketo subdomain generation and redirection work with non-default ports.
substituted HTTP_HOST with SERVER_NAME where used because the former can be manipulated by the client
could be cleaned up more to minimise code duplication, I wanted to get it to work first and I have to delve a little deeper into CIs structure to do that. but we could probably do more with the the subdomain helper in the survey model?
Merge pull request #320 from scornflakes/implement_custom_ports_for_subdomains

make subdomain generation and redirection work with non-default ports
reorganized JS modules, closes #298; fix for some table columns, part of #302
upgraded bootstrap (JS only, as css done with bootstrap-sass)
repaired testrunners
added missing gui.js and helpers.js files created with 6aca6b0aa0f88c9a69776e9331d494e6c559db81, added XPath evaluation error alerts.  Closes #322
Merge pull request #92 from modilabs/master

subdomain working with localhost, survey model cleanup
Merge pull request #93 from modilabs/issue_reduction_surge

Issue reduction surge
Merge branch 'master' of https://github.com/MartijnR/enketo into front