Upgrading freemarker

Exceptions are now more descriptive so we build the web error message ourselves rather than leaking internal class information.

See the final bullet point at http://freemarker.org/docs/versions_2_3_17.html#autoid_145