Added permissions for functions run, added registration/login templates, changed basic layout and added js-structure of the requests.