Tar test suite features

This merge brings in the following:
  * file:// url support for tar overlays.
  * Py3 compatibility to the test suite.
  * Adds proper file descriptor closing for db files.