Add error logging functionality.

This is not quite useful for now. The stacktrace is not included, and
the url/line number reporting fails in sandboxed iframes. But still
better than nothing.
Add `make release` to generate packaged Chromium extension.