Prepare security integration examples.
Added example for SpringSecurity integration.

Fixed some Java 6 incompatibilities.
Added mention for the security module in readme.

Original pull request: #1.
Moved to Tomcat 8.0.9 for REST based samples.