options.index can now be a function

options.index = function(req, res) { res.send('template'); }
options.index can now accept a function

corrected implementation: options.index = function(req, res) { return 'html template'; }
options.index can now accept a function

corrected implementation using next callback
options.index can now accept a function

pass path, resources and options to req.locals
options.index can now accept a function

pass options to the index function
Merge pull request #105 from inruntime/master

[WebTranslate] options.index can now accept a function