Add 'before_task' and 'after_task' hooks to Mix project