Modularize docker build environment

Moves docker build environment to a modular entity, builds up command output
with more configuration and proper settings. Adds some tests for command output
coverage. Moves build.json to per-version path.
Update command to take version name as well

This won't work, as it can't hit the API inside docker