The Second Nucleus of NGC 7727: Direct Evidence for the Formation and Evolution of an Ultracompact Dwarf Galaxy