Added BaseHandler.handles to simplify declaration of handlers using decoration.
Use new 'handles' function for simpler usage
Merge pull request #58 from jaraco/handler-decorator

Implement a BaseHandler.handles decorator.
jsonpickle: honor __getstate__ and __setstate__ for dict subclasses

Rework the picklers so that the __getstate__ machinery is activated on
dict subclasses.  Add elaborate tests to ensure that it interacts
correctly with the referencing machinery.

Closes #59

Reported-by: @as45239 via github.com
Signed-off-by: David Aguilar <davvid@gmail.com>
changelog: mention the __getstate__ fix for dict subclass

Signed-off-by: David Aguilar <davvid@gmail.com>
handlers: use SimpleReduceHandler for collections.Counter

We were not handling collections.Counter objects.  Register the
SimpleReduceHandler for collections.Counter objects so that they can be
properly serialized.

Add unit tests to cover the keys={True,False} use cases.

Closes #62

Reported-by: Alex Raichev <alex@raichev.net>
Signed-off-by: David Aguilar <davvid@gmail.com>
tests: replace our single use of assertEquals with assertEqual

Signed-off-by: David Aguilar <davvid@gmail.com>
jsonpickle: support objects whose __getstate__() returns a list

Closes #65

Reported-by: @krzykro2 via github.com
Signed-off-by: David Aguilar <davvid@gmail.com>