Add dependencies on legacy wikibits and ajax