core: Add LOG_DIR

Signed-off-by: Robin Hallabro <robin.hallabro@sveabyran.se>
core: Implement a simple maintenance mode

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