Refactor n2o rest handler and add json support