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.
Fix copy paste fail
Added JS unit tests for OC.L10N class
Include translations JS script for all apps
update script to generate js translation files
adding template short cut: translation
fixing parameter name
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
JS translation files for testing
update all translation files to js and json