Fixes #5

Allows for better logging.

Allow for a compatible logger to be passed as options.log.  Otherwise,
defaults to `console`.  A compatible logger would have both `error` and
`info` methods.