Cleanup platform

Cleanup usage of platform, use feature flags instead of isSimulated, cleanup imports from platform.