Fix richtext widget loading.
Version bump to 3.1.1
Added tag 3.1.1 for changeset 74912de3fb9a