Pick query from embedded textarea
Process src, code and q parameters
Deal with Prolog background knowledge
Provide code and background options