Update HTMLBeautify.py

Use compiled regex's for speed
Unindent properly when closing tags are stacked on the same line.