Added a function to allow for adding / updating a template.
Merge pull request #1 from freshteapot/createtemplate

Added a function to allow for adding / updating a template.
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...
The script will now exit instead of keeping a connection.
Merge pull request #6 from freshteapot/option_plus

The script will now exit instead of keeping a connection.
Fixing the last of and changing to ofType
Adding GET wrapper
Added ability to pass query objects into query function
Added a check for an existing id so as not to ruin existing id element
Added selective fields capability in the results adapter
Adding a splitter for dsl and string functionality
Updated config and client options with logging
Elasticsearch config uses log.

Long term we might want to change the config object. For now, just
need this to show the logs :)