Added basically full-plugin functionality. Lots more to be done, but everything so far is going very smoothly.