template: @template_args decorator addition

* Adds new decorator to allow overwritting template context functions by
  endpoint.  (closses #2009)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>