Revert recent change on CustomMediaFactory which caused severe problems
WebOPI: fix a bug that toolbar was not hidden in simple mode.