Move QueryRegistry into its own class [SERINA-10]

Also migrate supporting methods and data structs
Add shortcut to Query [SERINA-10]