Add pre and post_submit hooks

Users will now be able to define pre_submit and post_submit functions
in their invoke.py and fabric.py files to execute custom code.

Fixes #24.