Fix thumbnail deletion.
Add optional timeout argument to error function.
Gather all CSS/JS files in base template.
Add view-dependent CSS class to body tag.
Fix photo reordering.