moved all restangular config to restangular services
moved some test code around