Removed BOM of files
Added cron task and support for TaskAPI
Replaced some deprecated function calls