core: Add config_GetLabel convenience function
We have a static function that implements this in a similar way in the macosx UI but it makes more sense to move it here so that other UIs can make use of this too
Signed-off-by: Claudio Cambra developer@claudiocambra.com