make changes to comply with elastic4s 1.4.0 and elasticsearch 1.4.0. Got in sync with the latest version of ses_common