RestAdapter: Add headers paramater to ajax function

Added possibility to add additional header key/value pairs to send along with requests.