Add ability to archive entities.
wip