Refactor and update for ncclient compatilibty.

Make our workers much easier to follow. Additionally, support the new
ncclient with error checking.