Add unit tests for i18n library

In fact, move the existing examples that reside in a comment so
that they can be run.

To execute, execute in the toplevel directory: (phpunit must be installed)
$ phpunit .
Merge pull request #3 from pgeorgi/unittests

Add unit tests for i18n library