adds support for plugins. for plugin examples,
see: https://gist.github.com/shellscape/8443537