gcs: bugfixes, reorganization, & beginning of link mgmt