Extend Template widget

Based on SQL Queries widget, this adds param_count, memory_str, type and
expandable params.
Merge pull request #169 from maximebf/extended-template

Extend Template widget