more usefully encode data about aliases
only add data- attributes if present
don't break aliases (no editing yet)
handle missing data- attributes correctly
facepalm. provide site and title for new entities