Support for custom label / format functions

Added support for custom label functions (docs and demo use geohash as an example)