JSON: Implemented query status

Each query in the JSON CGIs now has an associated query_status that
indicates its lifecycle stage. A query can have one of four statuses:
alpha, beta, released, deprecated.