fix setting up of endpoints

each chef cookbook uses a different attribute scheme for storing the
respective openstack service's protocol and scheme so we have to get
those differently to set in the openstack-common cookbook endpoints

Fixes bnc#889353
Same here, there's an attribute: `node[:swift][:ports][:proxy]`