Make captchas use mw-ui-input when available

Change-Id: I44453a2cc238721468565403b9625039cb8742ef