pathprefix works

Got prefix working for more than the app-links. pathprefix is inserted as default template argument. Added pathprefix in front of urls and redirects.

with this hiding pyload behind nginx with proxy_pass:
location /pyload {
    proxy_pass http://127.0.0.1:8001;
}