[#1697] Date format() java extension should honor current locale

The first commit fixes the issue.
The second and third commit are code cleanups.
See http://play.lighthouseapp.com/projects/57987-play-framework/tickets/1697-date-format-java-extension-doesnt-honor-current-locale