Generic “cancel” button behaviour with History.back()

Used in “add page” dialog. See https://github.com/silverstripe/silverstripe-cms/pull/793 for context