Keycloak integration

All the JavaScript files are being converted to TypeScript, but the main idea will remain the same, so, it make sense to review those as well.