Added majority of Plugin API.
Rewrote TeaPotHandler to use Plugin API.
Minor fixes and tweaks.
Fixes, more TODOs.