Upstream commit "Add liblog"

Adapted from upstream commit ecba7488c5cceaacef95836b1b476433451e7761.
Add a changelog entry for 0.1.3, bump the version numbers