Moved JSON interfaces into ws/ folder
* Simplified query to return flattened entries
* Added category count interface