Add the capability to add attributes to the main [Entity]Query xml tag.

The main one I needed was ErroredObjectsOnly but there is ActiveOnly too.
I only implemented for QBD for now but if we see that there is a need
for this in QBO it can be done quickly.