Add PgSQL storage plugin, adapted from MySQL one

Quick'n'dirty code, but insertion in location works.

I have not tested with waypoints.

(Plus : no password, beacause I use socket authentification)