Generates and merges a hosts file from a list of sources.