Fix fix_ascendants.
Fix category search.
Redo error handling. Rollback on error.
Give required fields required class.
More safety checks.

If search spec not recognised, update will update all photos, se
we have some checks to try and make sure this doesn't happen
accidentally.
Fix bad function name.
ascedant/descendant searching
Home/work support in places.
Don't pass photo when paginating

The result number takes priority. This means that the
search won't exit if photos rearranged.
Default search for containers.
Set width/height of none image.
Various bugs debugged
Formatting fixes.
More style fixes.
Remove id element from photos, was wrong.
Fix errors viewing individual photos.
Minor technical improvement.
Ensure photos are sorted the same way everytime.