Miscellaneous bug fixes. Finishes XML parsing with errors in more error situations, opens a new file to start the application, fixes an error adding new photos the first time.