Serializable config

Part of #54 

@burtonjb @Linus744