icinga: Move purge resource script into module

- Also move pep8 config, since otherwise jenkins
  will complain

Change-Id: I4ac1e2e360781cb747aa3b59c83dcf2d3149f2d0
Merge "icinga: Move purge resource script into module" into production