Cleanup of luigi.mock

Some issues with multiprocessing causes random bugs. This change makes sure the manager (needed by MockFile) isn't instantiated in the global scope. Also a bunch of other cleanup to avoid pulling out internal variables in tests etc