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.
Merge pull request #3 from dzautner/threads-tab

Implemented algorithm to calculate %CPU in threads