Adds support for modules that use 'exports'

Hi,
first of all thanks for your work. It helped me a lot in my tests.
I added the support to module that exports object/function/constructors using 'exports'.

Hope this could help.
Cesare