added leveled logging, -q/-v cli opts and handling for Docker <1.2