Add function to store layer control status (overlay only) in cookie for using in next session.

Plugin can check the last status and control the display of layer. Main script can use this to control layer display in setup too.