Fix different issues from code review (mainly move to NightscoutPreferences).

Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>