Update to lein 2, update deps, fix threading bug

This is attempt to address a bug I'm hitting. 

The stacktrace is available here:

https://gist.github.com/sorenmacbeth/1c0096a905e2bb124648