Clean up permission
Adapt new permission interface
Refactor
Allow scope annotation
Refactor context
Fix bug
Fix ID field handle bug
Fix context creation bug
Add hint