I released the first version of the plugin!
Right now you can only manage the variables using a panel, but I'm thinking a way to export/import your variables from a json file.
Try the plugin and let me know your thoughts. It should be available on the official plugin list soon so you can install it directly form joplin.