Add OS API 'query' method

OS RESTful API method 'query' implemented

Implements blueprint: os-restful-api-query
Change-Id: I9c3dde735ce777cd069e49bfee442c6593a9cd74