Language bar functionality can all be controlled via the template

I've moved the language bar functionality all directly to the template and deprecated and functions and config values that are no longer used.

I also added a deprecation notice that all these deprecated functions will be removed in v1.0