Wire up search parser/executor to endpoint

Some initial tests with tree diameters
Extract instance_request to avoid mutual imports

Also, update branch and fix tests for flake8 updates
Merge pull request #51 from ahinz/topic/dbh-filter

Wire up search parser/executor to endpoint