provide a way to detect the language that is being used (e.g. for clientside javascript language selection
use fetch method instead of fetchRow because fetchRow is only an owncloud internal alias that exists purely for compability
use registerService method instead of array access
Merge pull request #8587 from Raydiation/master

Small cleanup and language detection for apps