Refactored UIPopup.

Removed hardcoded padding to a class for iOS.
Fixed issue where lack of title would cause creation of popup without
internal panel.