Photo seeds

not really seeds, but refactoring JS code to show uploading bar when uploading. display message if upload fails.