cdlib/cedilla — pull request #3 by briri (2014-07-01 22:10:04+00:00)
Title: Update data model - Feature #7055

* Updated the JSON api for Cedilla --> Services.
- Extracted ip, affiliation, original_citation, and the additional (unmapped) data out of the citation object and placed them at the top level as requestor_ip, requestor_affiliation, original_request, unmapped.

* Created a Request and a Requestor object.

* System now dumps out the entire history of a request (client request <--> Services) as a JSON object when the log level is debug or info.

* Updated all objects and tests to work with the new data model

* Reorganized ./lib and ./test folders by creating a /model and /util subdirectories

* Consortial service now runs as soon as Broker is instantiated. Configuration of this service happens in application.yaml. Comment out to turn it off.

* Added a /json_api_tests directory, mocha test, and yaml file. Test starts up cedilla and passes it every openurl listed in the yaml file and spits out the JSON message that would be sent to a service.