Add JSONfn to both server and client.
https://github.com/vkiryukhin/jsonfn
Set up programs file for client, to avoid asking the server for everything.
Use client programs data to optimize context menus and properties.