Fixed endpoint url and added stuff from heroku git.