Restructure client scripts and start using requirejs
Implement basic tree with dynamic loading
Refactor subviews in sidebar into separate classes