Added a .gitignore.
Removed a few obsolete files.
Updated hierarchy to a MVC-type setup.
Several changes made to app.js.

Made app.js the initial file, removed some unnecessary declarations,
added a couple of comments, and organized the file a bit more.