Encapsulate Flask initialization into a class.
Update view paths.