Move inlined ImpalaServer functions to a header file

Change-Id: Iae537d0b1d0a1c1db409d5819d54e9ec98b0e4f3
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1383
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins