replace fs calls by Json.load and save. Returns current messages on 'init'