Implements refinment of Instances

Ports are displayed in the Instance graphical element, but sizes are not handled correctly
Set a common *Pattern superclass for managing IDs
Fix resizing and layouting for instances shapes
Refactoring on StyleUtil