refactor - using class for ctx, which is renamed into Ctl; using require.js
remove extra console.log
style fixes
requiring ctl in first level
using Function.prototype.bind()
gjslint fixes
fixed a bug where an inline function was not binded
Merge pull request #30 from racker/songgao/refactor_js

refactor - using class for ctx, which is renamed into Ctl; using require.js