Revert "swap pending and received around (bug 888038)"

This reverts commit faa1c1bef605f04c1295f233db430d68f51a93e6.
rearrange docs to match code, record errors on billing config as failed transactions (bug 888038-reboot)