Merge pull request #52 from ahinz/topic/flakes

Topic/flakes
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