Optional SLF4J support without adding compile time dependency

Those changes were originally made by @BrynCooke in https://github.com/orientechnologies/orientdb/pull/1341.
1.7.7 is the latest, unsure why you'd bring in an old version of the api.