Added hostname completion for add, del and test options.
Networks are taken from /etc/networks for set types including the 'net' flag.