Converted the factory to a provider

Allows us to set configuration options (like if we save to local
storage, or just log to console).