Merge pull request by @hrj manually (replace jsoup in the core with w3c DOM). Big thanks to @hrj. Fixes #24 and fixes #20