Avoid NPE if slowQueryThreshold is undefined.
Avoid NPE.
JDBC 4.1 compliance.
Merge pull request #8 from markwoon/dev

- Fix NPE for missing slowQueryThreshold
- Fix NPE for calling executeBatch without any preceding addBatch
- Add support for JDBC 4.1.