Add a service figuring the best supported language out

First version of a service that returns the most appropriate language code among the languages available in the application depending on the user's browser "languages" preferences (Chrome, Firefox) or the browser UI language (for other browsers).

What are the other files required when adding a new service? An example page?