Set up Flask structure.