use rtgui_app to represent threads

This changes rtgui_send(tid, ...) to rtgui_send(app, ...) which make
RTGUI more independent with RTT. This also result in less but clearer
code.
app: remove app->server
Merge branch 'app'