core: AJAX improvements
core: AJAX improvements

+ Fully documented $.ajax()
+ Modified code to better align with the documentation (includes functionality removals and additions)
+ Fixed a small bug by reusing the contentType variable instead of the type variable

woollybogger/Firebolt,woollybogger/Firebolt