Add methods to detect whether request was AJAX request or not.
Merge pull request #44 from peelonet/ajax-requests

Add methods to detect whether request was AJAX request or not.