Redesign of tbb scheduler based on lithe updates

Also split tbb_lithe.h into .h and .cpp file