save scriptPassword and last battle

see #80

saves the last battle id and the generated scriptPassword in config file
if user tries to rejoin the same battle, the scriptPassword is sent again,
otherwise a new one is generated