made token authentication an option when instantiating AgsHost