Added Java config support to Message Servlet

Added Java configuration support to MessageDispatcherServlet so that
it can be configured within a ServletContextListener or a
ServletContainerInitializer.

Issue: SWS-832