Fixes crash in ranker. Adapted buyscript to new login page
Organized code in packages. Made it less concurrent but more correct