Updated chart rendering to be async

Temporarily removed some debug code
Syntax changes

/usage_summary is beign deprecated
Added animated loading spinner to chart
Split off javascript into a new file
Added authorization checks to api endpoints
Merge branch 'async-chart'