Split AngularJS app into files & make messages service compatible with sockets