XenAPI:  Fix final script to include functions

Generally a ubuntu template is supplied - but in the case
where it is not, we need to source functions before sourcing
stackrc (Through xenrc)

Change-Id: I8325cf1c6f83946b7798e6d1bb8278e86831d3c4
Merge "XenAPI:  Fix final script to include functions"