Update dependencies, tests. Apply some fixes. Add Java 8 partial support