Added photo dao. modified photo, user, and document models with
permission to match the daos. added dao test to wicket app.