[pgconfiguration-ws] Refactoring controller code out of PGConfiguration model