Changed the IO modules to Persist, removed the dependence on the IO
monad and replaced with any monad at all. Also exported functions to
serialize and deserialize the Persist Id type.