Add split function to templates

For https://github.com/kelseyhightower/confd/issues/128