Added support for count and distinct queries
Merge branch 'master' of https://github.com/konik32/openrest