Added storage to permissions
Added new storage methods to base.js