Move from jQuery AJAX to RestClient

Also: documentation