Add some constraint checking to archive

This makes it suitable for use during account cancelation.
Merge pull request #2469 from gittip/constraints-on-archive

Add some constraint checking to archive