Medha: Git-Backed Persistent Memory for LLM Applications