refactor kornakapi http api
yes, its apache licensed