Add timestamps to unit add/remove & base classes for xml metadata generation

There might be a function in ``pulp.common.dateutils`` that does this, in case you haven't looked there.