Rearranged code in NpgsqlConnection

Grouped related methods and added #regions.
No code change whatsoever.