Tox support

This PR rebased the ideas from #69 onto the new pytest testing structure.