Working client/server RESTful API for onm...

... Requires further testing but seems to work well to a first approximation with curl.