Add prepare shutdown logic
Add prepare shutdown logic

Now the power controller can accept a signal from the
Wifi module to postpone the shutdown and get back to
SLEEP_WIFI_ON state.

platisd/indoor-navigation-system,platisd/indoor-navigation-system,platisd/indoor-navigation-system,platisd/indoor-navigation-system