Restructured the flask layout from one file into separate files for different endpoints like lobby / friends / game / misc