adds more logic for saving configurations
fixes extra field display when field is not visible in view mode settings
makes use of entity_get_info for getting proper labels for entity types and their bundles