Index Template: Parse and validate mappings in template when it puts

Parse and validate mappings in template when it puts.

* parse and validate mappings in template using dummy index service
* return error if template include invalid mapping 
* Not support a partial template

Close #2415
ditto on failure message