Adding a slew of asserts to most xid command functions that have rigorously defined return values in order to keep everyone honest.

BugzID:3402