Fixes "probable bug" warnings:
Statement has emtpy body
Suspicious call to HashMap.get
Variable is never used (one was a bug)
Fixes StringBuilder being used to build a constant string. (performance)
Remove use of deprecated Claim.getPermissions. (non-api deprecation)
Replace for loops with foreach implicit iterator.
(performance change from O(n^2) to O(n) )
Merge pull request #36 from Alshain01/master

Bug fixes and performance issues