use Tika.parseToString for parsing, support a max-length parameter

there's no good reason to have the TikaProtocol protocol. This commit
removes parse from the protocol and replaces it with a function that
calls Tika.parseToString. This also allows us to support a
'max-length' parameter.

I can provide the changes for detect-mime-type as well, if you're willing to merge them.