Make test generator now work from a command line option to main script

The code in test_generator.py is moved into an object TestGenerator.  When an appropriate option (e.g. --test) is given to lastpass2keepass.py, a TestGenerator object is created, the file is generated, and the script exits.