Huge cleanup/code refactoring

1) Reorganized files/data locations
2) Added scripts to save users in test sets
3) Refactored some functions and utilities

The code that runs the popularity recommendation is probably broken,
but I'll fix it later