Added Device class to cv package

This will detect device capabilities like screen resolutions and retina
displays.