Added cat2html.h/cat2html.c and started moving code out of cat2html.l.

Moved some macros and pure functions out of cat2html.l.
Added function prototypes to cat2html.h for all functions defined in
cat2html.l.