Applied a Flask base

Modified the base application to use the Flask framework.