half-finished application logic

lot of stuff has changed, can't recall all, test some and read the wiki
TODO page.