Use journal.Writer instead os.File

Move all in main package, add tests for backup manager add ent prefix for storing the backups