Split HTML engine into it's own module.