amplitude: add locale parsing

HERE.com requested that we add locale parsing for their calls that get mapped into amplitude. I can update the tests branch with this commit 

cc @yields @gjohnson