Fix user settings dialog on Core API

- Separate compiled js into components.js and common-header.js
Merge pull request #43 from settinghead/master

Fix user settings dialog on Core API