Added base logic to parse and write virtual host files