Add dispatch test for valid request
Check the existence of the Accept header and act accordingly

Closes #21.
Merge branch 'hotfix-accept-header' into development