Set Capistrano dependency to '~> 3.1'

This is the lowest version I've tested with.

Using the 'pessimistic operator'[1] will also ensure we don't end up on
version 4.x.

[1]:http://robots.thoughtbot.com/rubys-pessimistic-operator