add requested-with header to all xhr requests (touches #144)

Add `X-Requested-With: XMLHttpRequest` header to all XMLHTTPRequests. This causes Flask to return minified JSON. touches #144