MULE-8018: Merge http connector code cleanup

Yes, to use it programmatically to build HttpListener instances. That's the purpose.