Added assertions for multiple entries in the same block.
Removed the obsolete hosts module.
Added assertions for the on command.
Changed the write command to use the PID as part of the hosts temporary
file name to try to prevent multiple processes from concurrently writing
the same temporary hosts file.
Removed the obsolete get_backup function.