Factored out javascript settings

* Restructure of SBT project to allow simple publish-local
* Factored out javascript settings into a separate project that automatically adds them to the build
* Fixed a bug with multiple sessions
* JavaScript sources is now based on resources, and resources is dependent on jsSources