Rewrite prepared query parameter substitution.
Query rewrite code

Unify all query rewrite code.
Break all commands down into indivual queries.
NpgsqlParse now takes a byte[] query string.
Use a more efficient method to get at the individual queries in a command.