Replace hand-rolled lock code with `redis-lock` gem

This change means that there's less code to maintain, and it has a (slightly)
nicer interface.

This code is pinched from the `transition` app.
Merge pull request #10 from alphagov/use-redis-lock-gem

Replace hand-rolled lock code with `redis-lock` gem