Added the ability to save a configuration (untested) as well as properly handling receiving json messages from the server