This change is mostly a port of the change authored by mthaddon
to add bionic support to the charm.
As noted in the readme postgres 10 is currently not supported so the
corresponding functional test uses a xenial postgresql node.
Change-Id: I3f11f024ced8aa5ae58135d5e5e23ed94d4c31f9