Moved config options out to a separate file.

Child-killing trap only gets set if you sat 'TRAP_EXIT=true' in the config, so as not to interfere if you use a supervisor like Node.js 'forever' with the killTree option.
Modules only load if they end in '.sh' now too.