Convert Log calls to Exceptions and decouple joomla/log

This breaks the circular dependency between the `filesystem` and `log` packages by removing the use of the `log` package here.