Clean up settings & add e2e tests

* Remove obsolete settings.js
* Rename ‘js’ folder to ‘settings’ folder
* Add config files
* Close and save settings
* Add e2e tests
* Additional Gulp configuration