change html_minify to recursive function

As per discussions in #21, I implemented a minify version using recursive functions to walk and clean the tree. This method is, I think, more robust and happens to be faster.