Move extra::json to libserialize

This also inverts the dependency between libserialize and libcollections.

cc #8784
auto merge of #12453 : alexcrichton/rust/move-json, r=brson

This also inverts the dependency between libserialize and libcollections.

cc #8784