added define module shim greatly inspired by the one in contracts.coffee, but to do wiring to our own little system that wires modules together.