Location and routes

This pull request solves all the problems we never had.

On a more serious note, we now have real URLs for experiment/rules/scan, the current tab is also highlighted in the navigation bar.
I have also separated the three tabs into their own files and re-structured the controllers so they have and know their dependencies.
Previous bootstrapping code (event handlers and things) in main.js can now be laid out more sanely with this. So we have less hacks :)