Prepare for unit testing

Add smarts for the scraper to tell the different between being run as a
script and being required.
Add some test data.
Add the skeleton of the test case.