TAJO-1026: Implement Query history persistency manager.

Closes #179
TAJO-1162: to_char() returns "-00" second.

Closes #234
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/tajo into TAJO-1163
Fixed hcatalog compilation failues.