Upgrade to twirl 1.0.4

Closes #238