detect device type via UserInterfaceIdiom

using screen.width and screen.height is a poor way to detect device type.
Merge pull request #34 from ghuntley/patch-1

detect device type via UserInterfaceIdiom