Added a log (and a logpage to view the log)
Refactored background task registration