NEW Added FormatFromSettings(). Formats dates as per user preferences.

- Required for silverstripe-cms/issue/965.
- Separate implementations for Date and SS_Datetime.
Merge pull request #2961 from phptek/cms-issue-965

NEW Added FormatFromSettings(). Formats dates as per user preferences.