Re-adds user preferences

In case removing them caused errors
Adds GUI and early menu system

Also implements user profiles and stats handling
Merge remote-tracking branch 'origin/master'