update the page's CSRF tokens with the new token
from the response header,
verify csrf token in ajax endpoints,
initialize a session for every endpoint
Use ajax for getting bandwidth data.
Added support for adding extra scripts in footer if needed.
Signed-off-by: D9ping <D9ping@users.noreply.github.com>