frontend: Refactored ClusterModel to use generics

Change-Id: Ib639a20cc718f7e8479627772002507cef04ad53
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>