Add preferences to API output json
Present preferences in grouped form in API