implementing the write_file_to_object_db
moved unpack-objects from packfile to git-core
generic check_out function
removing reduntant constants.h
adding git-check-out.h , missed earlier