ran phptidy on ElasticAppModel, added a few comments and minor refactoring
added a .gitignore