Major refactoring

Separated JavaScript files, relocated spec and template files, added
building support, revamped readme.
Ignores

Added some ignores