tests: add screenshot recording to weston-test

Adds wl_test_record_screenshot() to weston test.  This commit also
adds a dependency on cairo to weston-test to use it for writing PNG
files.