Documentation!

Hi,

I took a stab at the documentation in doc/, please review it for factual errors if you decide to merge it. I wrote it based on a surface-ish comprehension of plugin internals. Perhaps the main github documentation should be merged into this one, or vice versa. I will be glad to hear any input.