Move localrepo to src/lib

I felt this made more sense in terms of directory structure.

I'm not sure why git ate my pull request description...