REFACTOR: httpSetPlatform

Split into httpSetPlatformDir and always set the platform. Only ESP sets the platform directory.