Implemented persistence of selection.

Works almost correctly: in some cases, the effect frame is shown, even
though it didn't when the application was closed. For instance, when
setting the background using drag mode. 

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>