Added page driven queries

Added page driven queries and set up xml file to save page text and
queries to, allowing persistence between sessions. Fixed misalignment
between layoutN table row due to non-packing behaviour during a session