Add test case for low-level parsing of \color, \definecolor, \pagecolor.
Allow spaces after \begin and \end.

This also allows us to cache the results of the BEGIN/END productions,
which should improve efficiency.
Add some notes about future tasks.