TIKA-1270 Move to a common set of logic to decide what to display, so the output type bit just deals with formatting it only, and add a browser friendly html view too

git-svn-id: https://svn.apache.org/repos/asf/tika/trunk@1588214 13f79535-47bb-0310-9956-ffa450edef68