wmflib: add funcs requires_realm() and requires_ubuntu()

These convenience functions provide a bit of syntactic sugar to make a common
idiom more elegant and concise.

This patch introduce usage to demonstrate how these functions are to be used.

Change-Id: If91d79178f50f3125bbf8b4e7acaf8b1ff94e55c