make unpublish() a method on PageQuerySet as suggested by @kaedroho in https://github.com/torchbox/wagtail/pull/566#commitcomment-8037361
Use `if request.method == 'POST'` rather than `if request.POST` so that tests don't have to post dummy data