Start of the elisp for the major mode.  Still a lot of work to do there.