Add decorator in config.py to register validation callbacks.

This includes changes suggested in the last commit: f31d46aef6000aa2a85b4bf3bc030061187dccab.
Two sample functions to validate the IP address for a Dell driver, and to
validate the trunk_nic for a headnode are also added.