[#2] Add json serializer

You can serialize attributes by #as_json or #to_json. In this way you
can in simple way pass attributes to services objects.

Fixes #2
Merge pull request #10 from LTe/serializer

[#2] Add json serializer
[#3] Add #update method

You can use @object.update(params) insteaf of #attributes=