fix yesod-core auth response type for json

this is json-auth #519 squashed down to 1 commit