Fewer warnings and other things
Don't send orphan nodes to clients

Also a bunch of other semi-working stuff.
Build fixes and warning fixes