Some fixes (not completely tested).
Some fixes (not completely tested).

Note: There are printfs to remove from ames later.

jfranklin9000/urbit,belisarius222/arvo,ngzax/urbit,ohAitch/arvo,jfranklin9000/urbit,jfranklin9000/urbit,jfranklin9000/urbit,ngzax/urbit,ngzax/urbit,jfranklin9000/urbit,Fang-/arvo,joemfb/arvo,ngzax/urbit,urbit/urbit,urbit/urbit,cgyarvin/arvo,belisarius222/arvo,joemfb/arvo,ohAitch/arvo,jfranklin9000/urbit,cgyarvin/arvo,ngzax/urbit,urbit/urbit,urbit/urbit,jfranklin9000/urbit,ngzax/urbit,solri/arvo,urbit/urbit,urbit/urbit,urbit/urbit,ngzax/urbit,eglaysher/arvo