Implement token-based authentication API foundations, others tests broke