Lots of changes to support localization

cc @eickenberg. API needs a close look - if the internals need cleaning I am going to do a second PR for cleaning up examples, and probably adding a wordnet hierarchy matcher (matching dog and cat is tricky). 
Same issue as with the classifier. Should it be here?