Allow settings to take direct references to objects as well as module paths

Simple change to allow objects to be passed to settings directly, as well as being able to specify paths.

Fixes issue #64