adding in batch support and support for compound queries in 2013-01-01 a...

...pi