initial implementation of plugin
add some docs about plugins
Merge pull request #11 from dtinth/plugin

Adds plugin system.