User preferences, preserve case.

Added some user options. The options should be stored to file.
Also added some logic to preserve case.

I separated responsibility of background and foreground. Background should handle the generation of suggestions. Foreground should display and insert them in the correct place.