Add function repository.log
Update example log.coffee with core API
Add tests for repo.log