Added hooks for running custom commands.

Closes #8.
Merge pull request #9 from Leonidas-from-XIV/feature/hooks

Added hooks for running custom commands.