Upgrade project from Java 7 to Java 8.

Closes issue #19.