[elasticsearch] s/urllib2/requests/ and timeout handling

+ of course some refactoring to make it look nicer.