Changed SgPort interface to have vtable for common port operations.
Starting version 0.4.10.