Fix pagination for research_outputs.
Slightly broader error handling and 404's.
Count implementation now working for themes & supports pagination (unlike the PHP api).

TODO

extend count support to:

- regions
- countries