[minor] Avoiding (not very likely) naming collisions with server-generated ids and radio button ids
Backend for multi-select
Using constants instead of strings
Making the generate-json code for fields hopefully simpler to read