Remove unused import
Deny access to RB api if RB is disabled
Add some comments and restore _type
Fix ical export