- Add i18n support.

- Add support for time formatted as 24h (currently it only when
  time is set to 12h AM/PM).

- Add support to autodetect the time format.

- Add support to autodetect the first day of week.

- Remove all hardcoded JavaScript.
