initial implementation of localization. service switch needed. testing n...

...eeded. localizing against all the keyframes for now.