Added authorization checks so you get redirected if not logged in. Refactored so highcharts-ng doesn't need to be included on login page