Started implementation of json stuff

… for communication between server and controller