An accreting pulsar with extreme properties drives an ultraluminous x-ray source in NGC 5907