Create CoreSettings class for time-critical sections to use

Improve game performance by having direct access to important settings without the overhead of std::map lookups (g_settings->get...()).

This commit mainly concentrates on client performance but server performance is slightly increased as well (and can be further improved upon in the future)