Add devices and ports rest api

modify billing api to return with {error: xxx, data: xxx} structure