Restructure app into different files

Create separate files for controllers, directives and services