clean up the code a little, add TODOs,a nd support custom keypair injection in openstack server request