Java 8 migration

@lauraluiz please review soon, it also contains the changes of https://github.com/sphereio/sphere-jvm-sdk/pull/3