Add support for client action handler, exception handlers and security cookie to the rest dispatcher

First step to add caching in rest dispatcher