adds isAjax middleware
makes isAjax check more clear
Merge pull request #9 from oleggromov/clarify-controllers

Мидлварь для аякса