Handle layout rendering for xhr requests globally.
Reorganize sass files.
Fix remote errors renderer.
Adds a `do_redirect_to` method, that handles javascript and html redirects.