New tool add_entry.

To be used by the factory admins to add new entries in an existing factory config. (Cherry-picked from branch_v2plus and patches applied)