added device support for 'rotate' and 'bgr'

This provides the basis for moving rotate and bgr from a driver argument to a device parameter.
added rotate and bgr arguments
added rotation support