added some server api methods, config parsing to determine what kind of swarmlicant it will be, changed the input json test, switched ping response to type and json format