Simplify directory usage.

Tasks now take a single directory. The specification of "templates",
"data", "generated", and "remotes" sub-directories is now part of
options.
Use directory instead of dirname()
Merge branch 'feature/simplifydirectories' into develop