Move config to class property and add factory.

Signed-off-by: Michael Gooden <michael@bluepointweb.com>