Merge workspace/scenario separation to develop

Cherry picked the bugfix and split-up commits and also split up the templates and routes on the standalone version. Pull request is mainly for information purposes. I have not been able to run the tests for some reason.

I also have a "bower" branch where I make the shared stuff a bower component and both the "local workspaces" and "remote workspaces" standalone apps work from that version. I had to filter branch the bower_components away for that to work though, so it won't merge.