Add association deletion for applications and files

a.k.a Grants and Tokens are deleted too now when an app or file is deleted
More design changes