move the code that is run behind every test to a hook function

Also introduce a pre run hook for symmetry
Merge pull request #122 from os-autoinst/post_hook

move the code that is run behind every test to a hook function