Pipeline registrations

Eventually :)
TO replace that I will need to re write LOTs of tests.  Which would have made this PR too big to review