Catch all REST exceptions.

This fixes issue 1738.
Strip \r's when importing a zone.

This fixes issue 1729.
Require NetAddr::IP 4.042 or more recent.

This fixes issue 1722.