[VERY-WIP] made commit serializable

This is very first draft of #19 

What do you think ?