Fix stubRequire for browser global.
Now define/require exists within a context and the context is used to store the targets to be reloaded.
Added a definition array to store all definitions to be executed again in case of a reload is needed.