moved BaseBox before other boxes in the build
staticbox now extends basebox
Implemented algorithm to calculate %CPU in threads

Implemented the algorithm used in scripts/top.py to calcualte the %CPU
in threads and CPUs.