fix gui skin issue and code cleanup

Please confirm the issue with KER and similars are now fixed, seems ok for me (only tested with KER).
Make some changes in code but din't touch functionality(I hope) or gui look for now. Change some "if" for reduce nesting and so. Fixed some NRE's and control vessel in context menu now works (broken for me also in 1.3.4).

Salud.