l10n.pl now generates js files as well
remove translation.php
Added OC.L10N namespace with translation functions

Added addTranslations and fixed de.js file

Fixed de.js to use OC.L10N.register() and use to correct expected
format.

Added JS unit tests for OC.L10N class

Include translations JS script for all apps
in case a translation javascript is not found we no longer bail out
Include core translations
Moved search result type translations to search.js
Load JS translations earlier

Translations need to be loaded earlier to make sure that some JS files
like search.js get access to translations at this time.

This requires the template initialization to be moved to after session
initialization, because only after the session we have access to the
current language.
adding console command to generate javascript translation files based on existing php translation files
read server side translations from json files
update all translation files to js and json