parse request header for content type rather than the jquery data object
updates for new segtok options per https://github.com/latin-language-toolkit/llt-xml_handler/pull/3