Replace the local storage based feature flag with posthog feature flag. Also: - Fix bunch of eslint warnings in posthog store
Adds e2e tests for the template credential setup.