refactor of angularjs code
 - to make proper use of modules
 - to take all functions out of the global scope
Merge pull request #34 from josmas/dev_urbanite

refactor of angularjs code