Move json encoding out of riak_object

Revisiting https://github.com/basho/riak_kv/pull/88
But using riak_object_json encode/decode and leaving old methods in
riak_object.erl with a deprecation warning.