Added logging of exceptions

Hope you will accept this pull.
I've added logging via slf4j which allows the user to deciede what actually logger to use.
I was getting http server errors out of the library with no details on what was the cause hence the need for the logging.