vcldemo: re-factor to allow rendering to any outputdevice.

Change-Id: Ie3367c004d89043fb78d0b2dcd49254323353a4c