Added angular resource and mocks.