Added options for device type and OS stats graph.
Set default radio button choice to be device type.
Updates to auth functionality to correctly handle 401 handling.