Added the totals to the templates.
Some initial work on being able to browse the media library to insert an image. Includes modifications to the summernote.js source. Uses a preview url for the image, will need to add a render method to the attribute type which replaces the image src.