Adapt Login and Consent endpoints to work as REST apis:
1.1. delegate redirection responsibility to front-end, by returning hydra's redirect_uri
1.2 appropriately return error messages to be shown to the user
Adapt Login and Consent JS to work with the new REST apis
2.1. redirecting when appropriate
2.2. improving error handling and notification