Manager process mainloop

Change-Id: Ib2b38510e6844eccdd31b48c26ac4eeb28babfc4
Signed-off-by: TanelDettenborn <tanel.dettenborn@gmail.com>