Add get/delete template functions

This PR also deals with removing the `dist` directory and the extra `elasticsearch-wrapper.js` files which aren't used.