added HTTP API for management (work in progress)