Make serializers implement a standard interface

The ISerializer interface specifies standard 'dumps' and 'loads'
methods.