Refactor collectstatic to allow for post processing. fixes #1