Add the possiblity to add plugins the same way we add hooks.

This commit aims to allow a user to add plugins the same way one add
hooks.

Please see #7 as it depends on it
Merge pull request #9 from Spredzy/add_plugin_define

Add the possiblity to add plugins the same way we add hooks.