Remove unused HTMLMODE_* defines

...and turn the remaining ones into an enum.

Change-Id: I2e650fe2640f2bf512f356c7881a9722faa6ce25