Minor improvement
Move the parsing of RunMode in the ModuleContextImpl
ModuleContextImpl does not need to know ApplicationBridge
Move ModuleContext creation in the bridge itself
Remove useless lease count in module context