Finally split the client and server properly. Also now retrieving data via ngResource.