Add a Storage.flavor property to the postgresql backend
and add tests for 'mirror' and 'read_replica' flavors.