emitting 'user registered' event for modules; closes #110
fixed unit tests
Merge remote-tracking branch 'origin/dev'