Add configuration options

Allow to set the localStorage key, the property name on the $rootScope
and the function name to change locale.