/data/api/query written with test page
Merge pull request #4 from wrongu/app-restructure

first iteration of query api