some improvements for PostgreSQL connections in local mode
return an appropriate error message if the client is not connected; issue #30
two similar Record from different connections should not compare equal; issue #29
use an optional argument to start_openerp_services instead of hardcoding PGAPPNAME
do not register the closing-connections hook multiple times