Added global middleware support. Closes #40

Added global middleware via the front object. Uses the same semantics
as controller specific middleware. I also implemented an overly simple
request logger to demonstrate how to use it.