Static registration of event classes with Kryo.

This defeats the purpose of the configuration options in Storm.yaml, but fixes #49 in S4.

The code runs but there are still problems in the learning phase.