Refs #4739, move screenshot testing library code to core repository (from UI repository).