MP1-4578 : Code formatting/beautification changes.
MP1-4578 : Rework resume without using delayed resume message.
MP1-4578 : Added Focus on MP on resume.
MP1-4578 : Disable Devicelost during suspend or resume sequence.
MP1-4578 : Add more DeviceLost event and check for null value.
Merge remote-tracking branch 'remotes/upstream/MP1-4578-BUG-Wrong_window_handle_(MP_not_focused)_causes_freezes_after_resume_from_standby_V2' into 1.10.0Fork-BDJ

Conflicts:
	mediaportal/MediaPortal.Application/MediaPortal.cs
Fork : Added public method to be used on plugins side to send what need in sync with main MP thread (to avoid loadskin error).