Added settings

Added settings and persistent storage in anticipation of adding a configuration screen.

Also changed the default animation duration to 3 seconds from 4, as this allows the animation to complete before the light goes out.