template: @template_args decorator addition

* Adds new decorator to allow overwritting template context functions by endpoint.  (closes #2009)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>