remove some unused code

NUPIC2 flag is always defined in our builds, remove old,broken functionality for 
"what if #ifndef NUPIC2 ", 
remove unused headers and invalid header includes, 
remove Grouper* obsolete code and related classes.