Merge Improvements needed for new UCPN Editor
This is a small step, probably no breaking changes but revisions are welcome! I think that if approved, this can merge is orthogonal to any PSC work since it mainly provides new utilities or outsources some code logic to seperate functions.