Adding a model for RequisitionInterface and refactoring the controllers.

The algorithm for nodesInDatabase/nodesDefined is not working yet.