Initialize Flask server