add query support for REST service

git-svn-id: http://openbiz-cubi.googlecode.com/svn/trunk@5429 104121f4-e14d-89f9-dcf5-eda1cd0138dc