A first attempt to implement automatic integration testing

Not ready for merging yet, just asking for opinion