code mirror for hi lighting slim template
fixed broken new action when no version is given
stay in edit mode when changing something in the version
don't display session when no version is available
Using destroy to delete, because it deletes the document from the database while running destroy callbacks