A simple library to set request locale based on a hierarchy of factors