[master 5/22] Add tasks infrastructure to tasks directory.