Configuring redirect listener in the transaction interceptor

Adding redirect listener in the interceptor to guarantee that transaction is committed properly, configuring maven to compile classes with Java 1.7 and adding more tests.

That's similar to what we did on this [vraptor-jpa plugin pull request](https://github.com/caelum/vraptor-jpa/pull/4).