moved promise_request and success back to the api module and logInRedirect to router
added in data no tests