Moved singlephotoCtrl logic to resolve in app.js and fix bugs in requestHandler for getOnePhoto