Merge pull request #3 from DigiTechs/master

Half-finished thread scheduling.
Fixed some stuff, screwed up other things
Implemented task scheduler.
Improved thread scheduling and fixed .cproject