Mass commit of unsaved changes

Too many to list. Total rewrite.