Add Joomla 3 compatibility.

Joomla 1.5 compatibility dropped.