Introduce base type for responses

* Refs #11
Merge pull request #19 from patriknw/wip-11-base-type-patriknw

Introduce base type for responses