Add ability to specify template extension (Author: jaketrent)

Original: https://github.com/niftylettuce/express-cdn/commit/a8fb28a1d2c270c14e5ee559fb0bc08ebe5cd9b6