core: Add a very basic session controller

Signed-off-by: Robin Hallabro <robin.hallabro@sveabyran.se>