check if there are permissions defined
corrected backend contracts adding number as valid input in several methods
corrected several bugs in the contract check
check allowedPermissions using promises
0.4.2