New Serialization Format

New serialization format was created in order that the states can
interface cleanly to the server. New MIME class allows faster storage of
file extensions in serializations.