These docs describe what I think will be the solution. Most likely, there will be some 180° turn somewhere during the rest of deveopment ;-)