Update OOjs UI to v0.5.0

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.5.0/History.md

Local changes for the breaking change in Ie27bd94c.

Change-Id: I4f08022855ff3de103594155ccb41496bbec9152