made options easier to extend
removed dependency defaults.js->widgets.js so that historygraph.js doesnt't have to load the widgets
added a restore-defaults button; made the restore_options function have a better less magical use