Handle non-existing log directory at start
Java 8 compatibility, test nashorn as JavaScript engine, gradle 2.2, some test fixes