* change structure for typescript
* set angular.module
added server-side authentication