Change callback first argument from `success` to `err`

Not too bad! I only tested this with the room messaging API, but it's probably fine for the rest of them (I'll make an issue for tests shortly).

lmk if there's any style stuff I should fix.