Add support for both java7 and java8 script engine
Update travis build configuration