Updated some comments
Added method that can be used to determine if the request is an Ajax request
Moved the method that can be used to determine if the request is an Ajax request
Added helper methods for the other types of requests