Fixed evaluating conditions in ControllerExtensions::ClassMethods#check_permissions.

Refactored specs, version bumb to 0.0.5.