Correct headers on Template requests. Fixes #411
Merge branch 'master' of github.com:geosolutions-it/MapStore