Allow serializers to be configured with Kryo. #243

Changed the kryo builder so that custom serializer definitions take a Function<Kryo,Serializer> so that dynamic construction can be supplied.