Turns LTrap into a mutating singleton invoked by the plugin bootstrap and adds window property