Allow config options to be functions

If a config option is a function, the result of that function will be
returned when getting the config option. Otherwise, the object itself is
returned.

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Merge pull request #460 from cbmi/allow-config-funcs

Allow config options to be functions