#179 early attempt at supporting full JSON beacon documents.
#179 resolved. Added query criteria.
Merge pull request #187 from joola/feature/issue#179

#179 added query criteria.