make module.export both export factory & class

this change makes the base class exported, while making it possible to create an medea instance as a factory.
Merge pull request #29 from kesla/medea-exports

make module.export both export factory & class