supported adding HTTP headers to RESTAdapter ajax calls

add docs for customisation options for RESTAdapter

renamed apiHeaders to headers and used an object rather than array of arrays to describe headers