Add SQL support
Introduces the "sql" backend, and refactors backends behind a nicer interface (which looks a lot like the one in id/auth). Users can define arbitrary SQL queries to fetch the key data, to adapt to their database schema.
Include vendored dependencies for sqlite3/mysql/postgres.