Added a mode for grammar-using code modes to extend.

It wires up the common bits needed for using TextMate grammars to support a
code major mode.