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). 
3D array input here, but same thought. Since it is going from a domain representation, I put it here.