testing infrastructure, issue #1800: Refactor docker testing using Docker in Docker

This PR also adds docker-ci production improvements to nightly build. Although we still need #1955 for docker-ci to work properly,  all the heavy lifting has been done