Moved the editor into a dialog

Better implementation of dialogs.  Cleaned up the list.html file by
moving the editor HTML out into a separate template file