Complete restructuring of application for modularity.
Complete refactor to fix routing with ui.router.