converting TodoService.saveTodo to use $http