Put settings variables in a struct

Signed-off-by: Mattias Andrée <maandree@operamail.com>
Do all settings parsing, except from the command line, in settings.c

Signed-off-by: Mattias Andrée <maandree@operamail.com>