Refactor: libcib: Rearrange cib_remote_signon a bit.
Move all the function calls out from inside if blocks where they're
hiding, test for error afterwards, and jump to the done label if there
was an error. This is just to make the flow of what's actually
happening easier to follow.