Ported String types to Text

Changed all human-legible String types to Text. Also cleaned up some unnecessary type conversions and removed unused packages.
Does user agent really need to be a configuration parameter?