Moved editor management (tabs, tools, etc) to its own javascript and css files. needs commenting