Minor tidying.
Fix bugs in shared/connect causing it to loop forever.
Add start of chrequest and incomplete, stubbed out shared/store.