Cleanup in pkg_add, minor work elsewhere. Still dirty
Quick test on querying the local repo
Basic dirty local repo support