Replace entity url handler with a hook
 Replace deprecated getContent call
Use elgg log for logging debug info
Merge branch 'elgg18'
Replace deprecated size call
Remove redundant breaks
Merge branch 'elgg18'
Fix uses