Refactoring, renaming, some cleanup.  Preparing for issue #26
JS to use tab ID as anchor to allow selecting a tab with the URL
Stay on photos tab after upload and delete