First pass for #1692

Make it possible to configure a default Serializer and use it in AtmosphereResourceFactory.