Allow BrowserQuest to run on Openshift.

This allows BrowserQuest to work on [Openshift](https://www.openshift.com/).

I'm not sure whether or not to squash this into one commit. While in its current form the PR wouldn't look nice in the commit log, there are so many changes that it might be difficult later to find what part of this commit introduced a bug.