Add support for multiple Stacks

As part of this have moved to case class serialisation.