WIP: refactoring app views to make them support different task types. Also, task types initialization added, app init moved out of app.py, many things disabled for now to make whole thing at least start