Simplified code that starts application. Using Flask's function to do that.