Manager logic thread mainloop

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