Add exception resolver

Also enable dummy session cookie required for SockJS tests and which
is now turned off by default.