Support Java 6.

There is no need for Java 8. You can use anonymuous classes instead of Lambda expressions if you're working with Java 6.

Added a profile that tests some Java 8 trest in order to verify that the library can be used with Lambda expressions.