Remove internal `connect` function

Most of this function's responsibilities concerned patching incorrect
behavior of the `htmlparser2` library. Since the parser has been fixed
in the latest release, that logic (along with the associated unit tests)
may safely be removed.
Merge pull request #331 from jugglinmike/remove-connect

Remove internal `connect` function