Use django-pipeline compressed and fingerprinted Javascript
Remove an unused {% load staticfiles %}
References to STATIC_GENERATION_NUMBER are no longer needed
Switch uses of STATIC_URL to the static template tag

This is so that the fingerprinted URLs will be used in production.
Ignore generated CSS files in the repository tree
Make sure a more recent compass is present by installing as a gem

This is based on sayit.mysociety.org's post_deploy_actions.bash
Strip some trailing whitespace