Extract purging logic into its own method

Previously the code for sending a purge request was duplicated across
the page- and domain-purging classes.
Merge pull request #4 from robmiller/extract-purging

Extract purging logic