fix($$interimElement): make templates work with custom interpolation symbols

Previously, components specifying their own templates (such as Dialog, Toast etc) assumed that the
interpolation start-/endSymbols where `{{` and `}}`, thus breaking in apps using custom symbols.
This commit introduces a new `$mdUtil` method for replacing the "assumed" symbols (`{{`/`}}`) with
the actual ones.

Close #877.