allowed for the option of setting autoIndex globally when setting config options for a connection

added in the logic for ensuring indexes

fixed logic in model for ensuring indexes

added semi colons in places that didnt have them

added a test for global autoindexing

debugging

added more test cases

whitespaces
Merge pull request #2421 from LearnBoost/gh-1875

gh-1875 - global autoIndex