Fixed issues with WebUI crashing when using a custom web_root setting in the config, also fixed a few other misc WebUI related issues.

This resolves issue tickets #1065, #1064, #1049
Merge remote-tracking branch 'origin/develop' into develop