remove code duplication
remove network access dependency
added timeout decorator; added timeout for starting LanguageTool server and timeout for pdf2html transformation