Updated API

Added getPermissions, and getAllPermissions

Removed debug left by mistake.