Feature: Query interface /w capybara tests

Initial implementation of the query interface with necessary tests.