argo/medea — pull request #36 by kesla (2014-08-02 12:33:27+00:00)
Title: Simplify locking

Yo,

When looking at #35 I realized that the locks wasn't working properly - when I added error handling I got a few errors related to that.

This PR will simplify how we do locks greatly, and now the locks has one single purpose - make sure that not more than one db is open at all times. I'm using the `lockfile` module for this, so there's fewer lines of code to maintain :)