Minor refactoring: changed CometMessageFactory to MessageFactory component. Added MessageFactoryTest
Import cleanup
Testing is data is urlencoded with HttpUtils.isUrlEncoded()