add index open/close operations
skip if type is an object
Merge pull request #9 from data-axle/index_open_close

add index open/close operations
Revert "add index open/close operations"

This reverts commit aec6b1856bbaa489ee9bd3d31cd64cfff5445fb9.

Please add tests.
Revert "Revert "add index open/close operations""

This reverts commit a59372500c8b3299bd975422a79ea7731bb05828.
Use the indexs status to determine if its close. Would love to find a better way
add test case for later identification of #12
Do not build the index document if index is disabled. Fixes #13
Merge pull request #14 from data-axle/disable_document_building

Do not build the index document if index is disabled. Fixes #13
Add index_record to manage this logic in one spot
Move errors to its own file
Merge pull request #15 from monde/master

Eager loading associations