Media, document templates mainly done

Still need a full-size media view. :)