Add instance object

This adds the instance object and tests.

Related to bp/unified-internal-objects

Change-Id: If8cf9aa20950b0f543228ca3dd86527c830790c7
Merge "Add instance object"
Merge remote-tracking branch 'm_src_repo/citrix-fixes' into build-temp