dir => dirName in variable and function names.
New feature: Put the variantInfo object into res.locals upon successful negotiation.
Release 0.3.0.