Added option for units. Code cleanups

Moved all options into the widget. The weather script is in javascript
for now.