Using $http and $q to get server json
Using ngResource