dm: save pexpect session to device.session

This changing simplified arguments passing.
dm: new feature, save running config to device before upload