Extract application permissions from a drools file and into Java code.
Resolve checkstyle violations.
Remove unnecessary comments and obsolete secruity.drl file.
Merge remote-tracking branch 'origin/master' into sec-functions
Remove security.drl file from the Arquillian deployment.
Create a new PermissionGranter class to perform invocations of granter methods.

Also validate that all arguments in a granter method are provided if the granter is to be invoked.
Keep granter methods indexed by the action(s) they apply to.
Make sure granters are only called if necessary.
Formatting changes and code review updates.

Correct some code formatting and tweak some of the security rules that although equivalent to the drools rule, were incorrect in terms of business logic.
Merge remote-tracking branch 'origin/integration/master' into sec-functions

Conflicts:
	zanata-war/src/test/java/org/zanata/arquillian/Deployments.java
rhbz1113843 - Fix permission evaluation when dealing with multiple targets.
Merge pull request #478 from zanata/sec-functions

:+1: