Intial commit of a draft openserver.restservice.js and small fix