Added %option reentrant to lexer.

Added necessary init and destroy calls to main(), and added scanner
parameter to various function calls.

Moved prototypes for lexer generated functions into cat2html.h.