[TIKA-1196] Adding a host option currently set to localhost by default, thanks to Rian Stockbower for driving the discussion and patches, also doing few minor updates to minimise a number of warnings

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