Fix tests
Fix resource tests
Add ability to regenerate token with api
Regenerate token without reloading page