Ipns name resolution

This branch is not yet complete, but before i move forward, the name resolution code (in namesys) needs some critiquing. There are also a decent number of bugfixes in this branch that i ran into while trying to get the code to a point where i could test ipns.
rsc has so much of our love :) 

Thanks for the response. Makes perfect sense-- we'll have to create an abstraction on top to handle buffered reading/writing.

Btw, you'd probably like this project. Take a deeper look when you get a chance. Talk + paper at http://ipfs.io