updates to integrate with node-squarespace-middleware. fixes #48.