Add support for labelFunction from JSO. Cleanup pending for elegance.
Add support for labelFunction from JSON. Bugfix pending for default
values being set by jackson serializer.