Transport/ Java API: Fix result transport and add api methods

Also this commit changes request structure. "reducers" shoudl be given as object
and not as array to be consistent with aggregations.

```
"reducers": [
   "reducer1": {...
...
]
```

becomes

```
"reducers": {
   "reducer1": {...
...
}
```