Add option to define factory as static method.
Merge pull request #37 from spencerdeinum/static_factory_method

Add option to define factory as static method. Closes #34