Implement Semian API

@Sirupsen, @fw42

This implements the API we discussed the other day: https://gist.github.com/Sirupsen/2c3e0fd18b1ee95de877

The hardest part was writing the tests, but I think I've covered all the case we care about. The tests are the part I care most about with regards to reviewing - the implementation was pretty straightforward.

I want to make sure that the override of 1 second works. So if I don't pass the override, the acquire will fail because the resource is owned by the main thread for at least 0.2 seconds.