Started working on pub-sub from ruby component. INCOMPLETE.