fix #503 add support for template exists requests
Merge pull request #903 from elasticsearch/feature/template-exists

fix #503 add support for template exists requests