If object has an id use it as the id of the saved value in elasticsearch.
Using a cleaner way of getting ISOstring for date.
Changed to using params to match the documentation from elasticsearch.
Merge pull request #3 from freshteapot/object_id

If object has an id use it as the id of the saved value in elasticsearch...