moved promise_request and success back to the api module and logInRedire...

...ct to router