Remove hardcoded fields

This removes the hardcoding for the custom field names. It will now pull the field names from the XML config file and use them, as well as the API urls.