Added requirejs modules and cleaned up some code.

Also made some code messier...
Removed comments
requirejs and build now working
Now builds properly
Added missing files and git ignores