save scriptPassword and last battle

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
Merge pull request #86 from baracoder/issue_80

save scriptPassword and last battle