1.move all user setting function to new CConfig class with all members static.

2. add the space and arrow key switching pages setting