Remove Connection.onClosed
Clean up Connection.state getter
Change constants to lowercase for new Dart naming conventions