Add optional API-based query splitting

Uses sqlformat.org by default but it is trivial to run your own server
and I intend to write and open source once for Scopely use.