adding photos view, model and server side getPhotos function.  uncommented