Minor refactors and tests

Biggest change is probably that it just relies on the system being able to locate `libkeyutils.so` or `libkeyutils.so.1`. There is now a test suite in place that brings up a VM in Vagrant to test against.