HUE-1746 [metastore] Read header from file

Currently the header is not truncated. Will be added separately.
Current tests are good, this is mostly front end.