MULE-8018: Merge http connector code cleanup

@pablolagreca is right. Everything inside api will be the API, what is not API should go inside internal package