Mainloop refactor
This is the mainloop refactor and docs parts that don't break the Android out of process result. I also removed the "not yet merged" stuff from the IPC docs.
Also contains a few random fixes I ran across. Unfortunately still no luck solving the "this isn't a heap-allocated thing" warning, but hey, at least now the macro is documented.
Edited by Rylie Pavlik