Do not overwrite original /etc/hosts when applying

In order to preserve what Vagrant and/or the original OS set, append to the
/etc/hosts file rather than rewriting it completely. Also add appropriate test
cases for the component test included in the project.

Reviewed-by: Jonathan Provost <jprovost.sh@gmail.com>