Factorial threefold hypersurfaces