Added tests for beforeRequest and beforeResponse
Added ability for beforeRequest functions to return a custom data object for serialization
Doc updates