Replace some deprecated functions

Most notibly remove the use of WikiError classes.

Change-Id: Ib5e9bc7f21c41d98783dc9b48744b526e8ce79b2