feature(repl): Adds REPL support in moduleLoader

Adds REPL support within moduleLoader .. we can now programatically
declare environment variables.