Rough MoSync tools nightly build implmented, slight script refactoring. NB - some functions deactivated for test purposes.