scraper.py: Scrapes Refresh header.

Closes chfoo/wpull#51.
recorder.py: Truncates the WARC file to safe offset if record fails to write.

Closes chfoo/wpull#52.