Refactoring for dev build
Fully implemented requireJS, build script, version management and zipping.