Add spec for checking process.mainModule.
Set process.mainModule to user's app.
remote.require should use process.mainModule.require.
The default_app should also set process.mainModule.
Fix refreshing the spec window.
Merge pull request #420 from atom/process-main-module

remote.require should search module from user's app