Minor fix + add query to QueryHelper
Always use require_once
Construct JSON object for our REST api
Added unit tests