Version 3.1.1

Give the qr script an --optimize argument to control the chunk
optimization setting.

Update the changelog for v3.1