Fix possible time-of-check-to-time-of-use race
Fixing possible null-pointer free
Vagrant file does some basic provisioning of the box
Install the depedencies for integ testing
Fixing an integ test
Fixing build issue on OSX 10.8 due to scandir API change