move lib.pacman.resolve logic to lib.str.mostlikely
rename $ to main.py for clarity
fix #30