fix test build
make prefix index a mapfile

- also, cleanup to writeNames so there isn't a method named writeNames
  inside a method named writeNames.
split OutputHFile into classes so it's hopefully easier to parse

the split mirrors the input classes in HFileStorageService
preload fids
small fixes
warm up index when mapfile is opened