Add module declaration to config.d
Removed unused imports.
Make LuaFunction ProcessTasks a class member.
Rename class Api to FileApi.
Make createTask use Config for the regex pattern.