Get todos for angular via api.

Add $http in controller to use it for api requests.