Adds api controllers and build photo index page
Moves photo model to photo.js