Support both Java 6 and 7, using Java 7 features when available.

I'm stuck preserving Java 6 compatibility for a while, but find myself needing resource scopes.  If you're behind the goal but aren't a fan of this implementation, I'm totally willing to explore a different route.