Added per-host variable check

Script now checks each host's block of variable to make sure it
contains all vars found in the template.
Also renamed some function names to be more descriptive.