Fix up previewing functionality to better support overriding slugs, previewing unpublish and published posts, and prevent affecting the normal previewing actions when a user clicks "Preview" from the normal posts screen. A hopefully better overall fixup for the get_permalink function.