1. moved common functions from PG::Local and PG::Remote to PG and made them methods so that inheritence would work. 2. made some changes to PG::Remote to make it work with renderd
Changed paths: