DDF-454: Updated the update method to clear settings if config deleted. Other changes made as well.
DDF-454: Added junit test
DDF-454: endpointName was not being passed out to global context
DDF-454: Added checks if httpProxy null; fix spelling