Multilangual support using phpgettext

Adding defineLanguage function file and method. Next step is to use user
setting and cookie to set lang for user.
Minor bug in server.php correction.