add horrible application loop, add user login, fix tests & server