return object definition, not declaration

Altered all src modules to return the definition of the module, removing the need to declare local var and return after script. Removed require definitions and replaced with list of deps in define calls.