libraries: add `atomic` as XHR wrapper