Move some SXM-specific code into Xapi_sxm

Signed-off-by: John Else <john.else@citrix.com>