Using module.define = looked silly on modules without dependencies, so for
some syntactic sugar I added a setter on module that automatically invokes
the factory and define functions leaving us with very little boilerplate for
leaf modules.

Signed-off-by: Tobias Sjondin <tsjondin@op5.com>