Am performance test

This contains the following changes:
* Framework for running a performance test
* The ability to build a performance script from a scenario
* Refactored function code to help with correlating and parameterising the performance scripts