Changes to get working with nutch 2.2.1 and firefox v 24

It would be ideal to put this on a nutch-2.2.1 branch