Improve extension engine.
Add extension docs.