Broke gamelib.js out into module and implemented requirejs for dependency management.
Generalized canvas id.