basic skeleton of REST server of lxd-registry server