dig: rewrite XFR support

NOTE: TSIG verification is still missing

refs #2137

Change-Id: Ic8e4b8d501da880e668046b6cc40cf24c45a1e19