fix and optimize something about config file

modify 	merge AmountOfUser and GetPortNum into Preference
fix 	bug that lost some configuration items after store
fix 	bug that AccountGenerator isn't thread-safe