split testapi from bmwqemu

This makes it easier to refactor as we clearer define what the tests
are supposed to access. For this I also added functions to get and set
into %vars
I removed the defaults to avoid duplicating them - they are in testapi.pm now