Fix locale not recognized

This PR addresses https://github.com/mhfs/devise-async/issues/58. It more or less takes everything already merged into my fork from https://github.com/baschtl/devise-async/pull/1.

@mhfs Please review.