Appliance: Added cert check

Added a certificate check into an appliance testing. The check is parametrized, it takes a list of 2-tuples, filename and md5sum of the file. If md5sum is specified as None, then the file won't be checked against it.
Commits have been squashed.