Bug 1049439 - change appWindowManager from singleton to class 

https://bugzilla.mozilla.org/show_bug.cgi?id=1049439
I can't tell but I think there's a reason to put the init here;
that is to say if there's no reason to put it in registerGlobalEntry please move it out here.