HTML template: include $customcss, cleanup.
Move main() to top, evaluate conf.customcss/rst2htmlexe.