Minor tweaks, including moving CommandQueue to its own module.