refactored hosts file methods into tasks
Merge pull request #19 from irvingpop/hosts_tasks

refactored hosts file methods into tasks