New function ggtags-eldoc-function for eldoc support

Refactor ggtags-show-definition for re-use by replacing
ggtags-show-definition-function with ggtags-get-definition-function
and ggtags-print-definition-function.