Added proper handling of defaults properties inside the ajax options param.
Added the ability to send JSON data with the xhr request.
Added proper handling of success and error callback.
Added error callback to the get request, refactored some html.
Added better error responses to the API.