Cleaned up urlInfo() usage (by changing to url() or link()).
More code cleanup.
Changed to use Entity::*() methods instead of entity_*() functions, where possible.