#588 add tests, routing, etc, for api responses always use json