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
I don't understand this comment.  Can you better explain why this will be a failure case? Does it have to do with the order templates are resolved in?