Fix table editor to respect 'orientation' trait

This PR resolves #170 and now respects `factory.orientation` trait if set, but otherwise defaults to `QtCore.Qt.Horizontal`.