Refactoring Config API.
Http Security API changes.