Fixed up project structure and build.
Moved all task stuff into tasks.swift (From appdelegate). Worked on improving coredata concurrency