ZF2-234: Add isXmlHttpRequest and isFlashRequest to Http\Request

Description

Need functionality for checking if request is xmlHttpRequest and flash request.

Common cenario:

if ($request->isXmlHttpRequest()) { $viewModel->setTerminal(true); }

Comments

I created a pull request that contains the feature: https://github.com/zendframework/zf2/pull/962

Issue was resolved and merged into master: https://github.com/zendframework/zf2/pull/968