refactoring batch requests

- change BatchResponse class to interface
- synchronised response headers map