Reorganized routes code for increased conciseness and added initial admin pages