backport of Nanoc::CLI.after_setup functionality
revert commit to limit the changes made to nanoc 3.x
remove self. to make the diff smaller
backporting test for Nanoc::CLI.after_setup
Merge pull request #407 from barraq/feature/backport-cli-after_setup

Backport Nanoc::CLI.after_setup functionality from nanoc 4.0