[SECURITY-851] additional testcase for Base64Utils class
[BZ1142732] Test related to the Base64 fallback
[BZ1142732] Fallback from faulty generated base64 strings. Including
warning log message.
Conflicts:
	security-spi/common/src/main/java/org/jboss/security/PicketBoxLogger.java
SECURITY-786 Improve Memory Performance

We did some profiling of or JBoss AS instance and noticed that audit
logging on JavaEE resources is causing most of our allocations outside
[TLAB] [1] s. This was a bit surprising to use since we don't have audit
logging on. We tracked them down to
`org.jboss.security.javaee.AbstractJavaEEHelper.authorizationAudit`
which unnecessarily does an eager string conversion of every
`org.jboss.security.authorization.Resource`. This could be done lazily
on demand when audit logging is on in `AuditEvent#toString`. Since the
map is already of type `Map&lt;String,Object&gt;` simply removing the
call to `#toString()` fixes this.

 * don't do eager string conversion of resources in
   `AbstractJavaEEHelper#authorizationAudit`

 [1]: http://openjdk.java.net/groups/hotspot/docs/HotSpotGlossary.html#TLAB

Issue: SECURITY-786
https://issues.jboss.org/browse/SECURITY-786
SECURITY-863 LogAuditProvider allocates too much

`LogAuditProvider` always logs the `AuditEvent` even if audit logging
is disabled. This means the `AuditEvent` is always converted to a
`String` even if the trace log level is disabled. The profiled our
application and this causes a lot of allocations outside of TLABs for
us even though we have audit logging disabled.

 * don't log if the trace level is disabled

Issue: SECURITY-863
https://issues.jboss.org/browse/SECURITY-863
SECURITY-787 Speed up SimpleRole#equals

We did some profiling of our JBoss AS instance and `SimpleRole#equals`
showed up as a hot method. A lot of time seems to be spent in
`java.lang.Class.cast(Object)`. Switching to a normal Java cast should
fix this since we're inside an `instanceof` and it always succeeds.

 * use normal cast in `SimpleRole#equals` instead of
   `java.lang.Class.cast`
 * add short circuit case for `this`

Issue: SECURITY-787
https://issues.jboss.org/browse/SECURITY-787
Update PicketBoxMessages.java
Fixing gitignore file.
(cherry picked from commit e3f2e84)
Add logout() to the AuthenticationManager interface