hook/unhook the "Is Running" and "Is Mono" properly when opening scripts from an object

LINES: 90 - 121 are important. 

Rest is only autoformat from VS 2013 I guess