Move Keystone client code into separate library.