Added Photo singleton class. Added user_id accessor to user model.