Add tests for serving private files without sendfile.
Switch to streaming responses for better efficiency.
Add tests for permission checks in the admin.

This brings branch coverage for gallery.admin to 100%.
Test non-JPEG thumbnails.
Remove unused methods.

These methods were too expensive for checking several objects in a row.
Add tests for the image serving views.