Added support for WAPI 1.6

Taking advantage of newer WAPI where IP address in POST request for a
new host record can be supplied as “func:nextavailableip:network”. The
library call “create_host_record” can now accept either IP address or
NET address in CIDR format to allocate IP from.