Tons of stuff

Lots of fixes, improved offline server handling, improved delayed
command handling