kdig: fix handling of parameter -p

refs #2137
kdig: yet another port fix

refs #2137
Add free to error case

Coverity scan #989568 (Resource leak)
Add missing free before return

Coverity scan #989596 (Resource leak)
Fix bad operator use

Coverity scan #989555 (Side effect in assertion)
Fix bad operator use

Coverity scan #989615 (Side effect in assertion)
partial undo of wrong fix for resource leak found by coverity

The RR being freed is still used in p->pkt->authority[0]. It
causes segfault when RR debugging is enabled. I'm not sure where
to free the RR.

norefs
Added basic test for knot_rrset_find_rr_pos.
Fix in NAPTR wire parsing.

- Renamed params in API of rrset_find_rr_pos - was not clear what variable meant what.
Merge branch 'new-rrset' into development
Fixed NAPTR wire parsing once again.

- Offsets did not need to be moved - wire write function does it.
Improved test_rrset_find_pos(), fixes in rrset.c.
zscanner: fix APL processing
Fix IPSECKEY text dump

refs #2138
Fix in knot_rrset_remove_rdata_pos()

- Added test case
- Fixed error - rdata_indices were not changed properly.
Added missing NULL check for owner in RRSet.