Add .idea to .gitignore.
Extract file management logic from SerializationPersistor to a common trait.
Initial work on JsonPersistor.