MULE-8018: Merge http connector code cleanup

Will rename and add Javadoc