Updated elasticsearch cookbook to 0.3.1.
Modified compatible Chef syntax for OpsWorks.