Wait maximum of 20 seconds for document.readyState==complete.
Merge pull request #12 from tobli/wait_for_dom_complete

Wait maximum of 30 seconds for document.readyState==complete.