Create .gitignore

added gitignore
Add changes to compile for Elasticsearch 1.0.0.Beta2
Merge pull request #7 from flavioperezcarreto/master

Changes to support Elasticsearch 1.0.0.Beta2 - Also works with 1.0.0.RC1