Fix failure tracking for non-streaming jobs.

* move the @staticmethods to luigi.hadoop namespace.
* refactor all uses of those functions.
* clean up some random lint errors and imports.

Fixes: https://github.com/spotify/luigi/issues/24