Java 7 support.

Connection now extends AutoClosable.
Fixes #16.