Initial checkin with beginning of API for interactive command handling.