refactor(core): resolve public URLs from PUBLIC_PATH
Assets and avatars are served from the document root, so their URLs are
relative to PUBLIC_PATH rather than to the repository root.
relative to PUBLIC_PATH rather than to the repository root.