Fix edge case with iPhone6 plus running apps in display zoom mode

There was an edge case with apps on iPhone 6 Plus ending up in Display Zoom mode (with a coordinate system corresponding to iPhone5/5S).

This Pull request fixes this issue and makes the LPDevice code more general which will make it easier to extend in the future.