Add support for try-with-resources statements

Java 7 adds support for [try-with-resources](http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html) statments which are ignored currently.