fix apiQuery @permissions = @control (ref: #493 and @494)
Merge branch 'fix-493-and-494'

Conflicts:
	src/protected/application/lib/MapasCulturais/Entities/Agent.php
	src/protected/application/lib/MapasCulturais/Traits/EntityAgentRelation.php
	src/protected/application/lib/MapasCulturais/Traits/EntityOwnerAgent.php
	tests/PermissionsTest.php