Basic query engine plumbing for mesage sorting
Implement orphan filter properly, remove serializable() for ideas, return the number of orphan and synthesis messages in the root idea