Use deepcopy to help ensure resource config isn't modified
Avoid reduntant copy of resource config for */*
Remove config.callbacks

Since it was only used for testing, moved it into tests.