I'm living and working in the UK on a spousal visa and am unfortunately going through the divorce process with my wife now. We haven't been in the UK for quite 2 years (although we've been married for more than that), but my employer has already stated that they would like to continue to employee me even if it means sponsoring me for a work permit. Hence, I'm wondering what my options are at this point: can apply for a work permit from inside the UK right now? Could deportation be an issue, should I apply for this work permit ASAP before the divorce is finalised?
As to the work permit, as I'm already employed what is my best option for getting a visa? I'm not certain I qualify for an HSMP, I think I'm just shy in points, though I think I would qualify under the new Tier 2 ... do I even need to worry about this since I'm already employed?
Sorry for the multitude of question marks, any advice will be appreciated.

--Misha