moved creation of AppView and Photos to script tags on index.rb, now giv...

...ing the photo information directly to the collection