Get the location to redirect to when discarding a draft. If it was version 1, then we can go back to the parent location.
Updated to latest version of summernote, which seems to fix the issues with editing links. Also reimplemented my custom tweaks for media library integration.
Added the ability for a page type to 'preRender'. This means the page type can add/modify the data which is sent to the template or it can return a redirect which is then actioned.