Module version checks for compatibility with API changes to ES 1.0
Patches to check ES version instead of module version.

Only do module detection in package install portion.
Merge pull request #41 from untergeek/master

Module version checks for compatibility with API changes to ES 1.0

Got a `lgtm` from @honzakrall.  Merging.