Replace a load of startup code with the xcp-idl equivalents

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

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