Migrate app packaging helper into an invoke function.
Add packaging folders to gitignore.
Separate tasks out into separate modules.
Add pathlib dependency to simplify paths.