Webserver bugfixes & improvements

Bugs #1361/1363/1784
Added access control to routing