new pxc2.rb, support for public and private ips when using aws

new pxc2.rb, support for public and private ips when using aws