A lot of refactoring and attempts to use $resource API
Added one more file
Merge pull request #66 from SpaceProphet/dashboard

A lot of refactoring and attempts to work with $resource API