Move some Widget class references to BaseWidget
General cleanup of base.js, including indentation fixes and adding view callbacks to the save options dictionary.