added permissions node to commandmethod
add permission to the command route
permission check
fix test compile
tests for permissions
Merge pull request #4 from Eluinhost/features/permissions

Add permissions to command method