window now stores PartModule not Vessel

For full access to the craft (through this.part) and the vessel
(this.vessel)
Added get connected resources to utilities

Also found a bug, seems the editor breaks as soon as you place the part
or load a craft containing it.