Connect middleware for Single Page Applications APIs that filters by request type and serves application shell HTML file for non application/json type requests, and passes the request through to the API handlers otherwise