js in separate files, cosmetic clean-up and commenting
refactored search to use nested lists instead of nested dicts, recursive query solving
get request converted directly to nested list; pretty print method for nested list
'sect' forms added to search page, value of 'sect' added to nested list of queries