Lots and lots of code cleanups (api and deferred stuff in particular).

per frame consoles in the debugger; start of a way to render remote
objects; some error handling clean-up; othre stuff i can't rememebr.