Rename Instance.as_selectors and make it an instance method, rename several other Instance methods, make *_port methods return Interface instances, update unit tests.