Fix bugs.  Add histories extension point.  Add preferences editor.