Centralizing shared memory handling to manager

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