Converts mouseinputs.js (now mouseevents.js) into module script
Converts keyevents.js into module file for browserify/beefy
Hack to get cubeworld to work with require, also pointerlock a go

- cubeWorld's var controls was made into cubeWorld.controls so
it could be accessed externally by pointerlock.js. This is a
temporary hack till controls are separated from cubeWorld.
- Both cubeworld.js and pointerlock.js had to be converted to
work with require() at the same time in order to keep the app
functioning
Converts display.js to moduleability
Converts userState.js to browserify. All non-three.js stuff done.

- And one three.js thing, cubeworld.js, was made useable with
browserify too
Comments and todo in index.html
New Build