Revert "Reverting to a previous commit."

This reverts commit 4a74e95ac29c3af3592ebe375cf8aa3f8c5ebb31.
Revert "Changed app structure for Flask deployment. Using scripts I found online."

This reverts commit 214b53b1c8eca0d8769cfa5c5bfdab7f1bd14121.