Added the ability to extend the core language via extensions.
Updated docs for extensions.