Now compatible with ContentNegotiatingViewResolver

The code is now aware of multiple view resolvers and a tests has been
added for validating the stuff.