add content guessing back in with Guess decorator

add for_json to paginate and photModel and options to phots index and view to
return a json response if the client doesn't accept html and does take json

decorate login with not_logged_in