Clean up gen_inbox

Respect deleted inboxes, damnit!
Give Attachments the right to children
Set on_delete on ForeignKeys that we don't want CASCADE_DELETE on