make <instance> always get inserted right after command_node

and sort instances by id
to normalize for tests
auto-include instances from assertions
require fixed ordering for Suite attributes
remove most explict <instance>s for basic modules

and fix test data to reflect sorted order of instances
check for xpaths in datum/@function as well
remove all unnecessary manual instance additions

and adjust tests accordingly

some test data was actually changed because instances were being added
over-eagerly
look for instances from within <stack> as well
make a special type XPathField for fields that contain xpaths

for a more declarative style, but it doesn't do anything functionally different
Merge branch 'master' into clean-up-instance-refs
fix test by not including unnecessary instance
Add management command to populate site codes
add support for Owner Name in case list

no UI yet, currently done by typing in #owner_name
parent/#owner_name, etc. also supported
Merge branch 'owner_name' into multimedia-case-properties+owner_name

Conflicts:
	corehq/apps/app_manager/static/app_manager/js/detail-screen-config.js
Merge branch 'multimedia-case-properties+owner_name' into autostaging
Merge remote-tracking branch 'origin/cache-locations' into autostaging
Merge remote-tracking branch 'origin/hq-dropdown' into autostaging
Merge remote-tracking branch 'origin/refactor-domain-copy2' into autostaging
Merge remote-tracking branch 'origin/hqstyle-merge+vellum-requirejs' into autostaging
Merge remote-tracking branch 'origin/dynamic-links' into autostaging
Merge branch 'offline-install-multimedia' into autostaging