Updated README.adoc.
Moved plugin instance class into separate file.
Documented plugin API.
Added example to README.