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 'Flask' imported but unused
100:9: F841 local variable 'response' is assigned to but never used