XNAT-4400: added attributes to DICOM SCP elements for easier identification and value checking; consolidated redundant functions; improvements to XNAT.table methods.