Updated to inject uuid node and bind using xml dom API
Added tests to check that the uuid and calculate binds are added to the correct nodes
Updated xml outpuch check to use the xml dom API
Used pasrse with file object instead of a parseString with a read - fixes #1007
Merge branch 'master' into 1007_uuid_in_wrong_instance
Merge pull request #1011 from modilabs/1007_uuid_in_wrong_instance

Used xml dom API to inject formhub uuid node and its calculate bind
closes #1007