Fix dependencies for Hive connector

A normal connector should not depend on presto-main. Doing so requires
careful vetting of all dependencies to avoid class loader issues.
Move this to presto-tests and merge it with TestingTypeManager in the kafka plugin, so that every plugin isn't reimplementing the type manager