add parent to module constructor

Pass parent module to module constructor.

Here a use case:

https://github.com/oroce/pin-clone/blob/master/app.js#L100-L103
https://github.com/oroce/pin-clone/blob/master/test/server/api.js#L24