Add ElementMaker wrapper class and safe_parse_url function.