Various fixes and improvements by jbs

    -   Device context now held in cmd buffer
    -   Allow multiple motors at the same time

Thanks to John Hanson for these improvements.