add platformId to device
platform specific fields for platformApp
minor fixes