Removed some HTML so that it could be generated dynamically by JQuery.  Added an experimental thumbnail/title div to dialog
Added CSS for thumbnail image in dialogue.
Added dynamic adding/removing of forms, refactored HTML to make it require less ID tags, removed number IDs in favor of JQuery indexing, changed metadata container to be an array instead of nested JSON, general bug fixes/refactoring