Remove api.Config{} object as it is not needed anymore
Fix error reporting from the Apply() and ApplyItems()