You can export your settings by going to the Preferences window >
Import/Export >
Export Current Settings... (this will save all your options, including script and skin settings, to a single file). You can then import it by selecting
Import New Settings... on the new computer.
As for history, do you mean chat logs? In which case, you can just copy the whole log directory (should be in My Documents) to your new laptop.