[RBL-04] Modifying app.js for templates and added states.
Merge pull request #7 from geripgeri/feature-templating

[RBL-04] Modifying app.js for templates and added states.