Cleanup:

* Removing duplicate functions.
* Reorganization of ui-utils.js.
* Early preparation for eventual inclusion of server side settings
storage.
* Adding ` />` to `<img>` and `<input>` tags.
Merge pull request #44 from nightscout/rebase/settings

Cleanup