Refactor handler lookup into method
Pass Request object to handlers

Also added an example that demonstrates query string parameters, and
modified the hello world example.