Bug 930833 - Extract more WMF utility functions to WMFUtils.h/cpp. r=padenot