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.
added tab links
moved layouts initalization to hadnler method
Added clear methods to views.

In order for the views to be able to render, the views displayed
previously have to be cleared, or else the DOM will become a mess.
To solve this, I have added clear methods to all of the views, which
will be called everytime the route is changed (a new handler is set)

To achive that I have addded a custom event that will be fired on route
changes.
CPUBox will now only display the maximum ticks set in settings
fixed broken static info
CPU chart now shoing %usage instead of %free
Merged all CPUs in CPU chart to an avarage

Displaying all of the CPUs in the CPU chart seperatly can get messy as
the numbmer of CPUs might get very high. Instead the CPU chart will only
show the avarge usgae of all of the CPUs.