Improve HTML text extraction

Strip out &lt;script&gt; and &lt;style&gt;, strip whitespace from each line, and collapse consecutive newlines. See #91.