Refactor console package and add mocks for tests

This implements a full API for working with consoles and containers.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>