Inherit from NetworkCredential and use associated framework. Creds register the module at first use.
version bump