Add serialization service

closes #6, closes #7