flask initial
tests almost working
all tests passed
fixes after rebase
ui tests fixed
fixes after rebase