Module: Add statemachine pattern for building

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
travis: Add new JDKs

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>