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

I think it's common to think of the word "timestamp" as seconds since the epoch, which would be weird to have as a string. So I'm not entirely sure what these two attributes are.