Adds TestDataGenerator and a simple locust test script.

Also some minor bugfixes.