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>
24:1: F401 'url_fort' imported but unused
100:25: F821 undefined name 'url_for'