Making an API change to so Medea exports a factory method.  Fixes #24.