moved system metrics to new System object

renamed SGR_functions.js to TERM.js
re-organization