Add intelligent type marshalling/unmarshalling
Change type to []byte
make Registry use Encode
Don't make people have to worry about the Kind field.
Make apiserver work with new encode/decode
Encode/decode working everywhere now.
Address comments; Also internally start using JSONBase instead of reflect.Value of JSONBase.
Merge pull request #196 from lavalamp/marshal

Make api able to marshal its types correctly