Allow end of line comments in inventory file

See github issue 2702
https://github.com/ansible/ansible/issues/2072
Merge pull request #2073 from nigelm/hosts_comment_fix

Allow end of line comments in inventory file - fixes #2072