Improvements of HTML parser.

I've done some improvements of HTML parser - now it supports formatting tables and produces nicer output (it can distinguish inline elements and uses newlines more carefully).