Allow configurable logger

This fixes #4 by allowing the configuration of the logger function via the options. I didn't add unit tests, but the current tests are still passing. If this is something you think is worth using, and you want it unit tested before merging, just let me know.