Implemented logging.

Hope you will accept this pull.
I've added logging via slf4j which allows the user to decide what actual 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.