Implement methods for adding and removing host configurations

This commit adds the ability to programatically add and remove host
configurations.