Tasklogs

This provides infrastructure and APIs for handling the individual logs created when running tasks.
We might want to consider `_register_logfile_on_master` for inclusion in the internals module instead.