First version of functional todo app with persistence