Relatively major refactor.

Updated thread model
Added AutoLearn
Moved most projects into two main projects (Brain, Kernel)
Fixed issues with K-means clustering